package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.Team;
import com.api.user.vo.TeamTournamentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TeamMapper extends ApiMapper<Team> {
    List<Map<String, Object>> list(@Param("params") Map<String, Object> params,@Param("order") Map<String, Object> orderParams);
    Map<String, Object> achievement(@Param("teamId") Long teamId);

    List<TeamTournamentVo> tournaments(@Param("params") Map<String, Object> params);

    Integer countTournament(@Param("teamId") Long teamId, @Param("officially") String officially);

    Integer countRank(@Param("teamId") Long teamId, @Param("i") int i);

    Team selectByName(String teamName,Long gameId);

    List<Map<String, Object>> batchCountRank(@Param("teamIds") List<Long> teamIds);
}